package com.cykj.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Component;

/**
 * @Program: Mooc-Admin
 * @Package: com.cykj.util
 * @Author: 张俊杰
 * @Create: 2025-07-09 14:45
 * @Description:Bcrypt加密工具类
 * @Vision: 1.0
 **/
@Component
public class BcryptEncodeUtil extends BCryptPasswordEncoder {
    @Override
    public String encode(CharSequence rawPassword) {
        return super.encode(rawPassword);
    }

    @Override
    public boolean matches(CharSequence rawPassword, String encodedPassword) {
        return super.matches(rawPassword, encodedPassword);
    }
}
